//分类信息相关的api接口所在的对象
import request from '@/utils/request';
const api_name = '/admin/product'
export default {
    //获取一级分类信息列表数据
    getCategory1(){
        return request.get(`${api_name}/getCategory1`)
    },
    //获取二级分类信息列表数据
    getCategory2(category1Id){
        return request.get(`${api_name}/getCategory2/${category1Id}`)
    },
  //获取三级分类信息列表数据
  getCategory3(category2Id){
    return request.get(`${api_name}/getCategory3/${category2Id}`)
  }

}

// GET /admin/product/getCategory1
// getCategory1

// GET /admin/product/getCategory2/{category1Id}
// getCategory2

// GET /admin/product/getCategory3/{category2Id}
// getCategory3